random_resample_clusters Subroutine

public subroutine random_resample_clusters(x, xn)

Resamples balanced clusters with replacement. The input stores contiguous records as [cluster_id, value], with every cluster having the same number of records. The statistic routine should use the value fields and ignore the cluster identifiers.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(in), dimension(:) :: x

An even-length array of contiguous cluster-id/value records.

real(kind=real64), intent(out), dimension(size(x)) :: xn

The resampled records in the same layout.